3.123 \(\int \frac{x (A+B x)}{(b x+c x^2)^{3/2}} \, dx\)

Optimal. Leaf size=60 \[ \frac{2 B \tanh ^{-1}\left (\frac{\sqrt{c} x}{\sqrt{b x+c x^2}}\right )}{c^{3/2}}-\frac{2 x (b B-A c)}{b c \sqrt{b x+c x^2}} \]

[Out]

(-2*(b*B - A*c)*x)/(b*c*Sqrt[b*x + c*x^2]) + (2*B*ArcTanh[(Sqrt[c]*x)/Sqrt[b*x + c*x^2]])/c^(3/2)

________________________________________________________________________________________

Rubi [A]  time = 0.0281775, antiderivative size = 60, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 20, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.15, Rules used = {777, 620, 206} \[ \frac{2 B \tanh ^{-1}\left (\frac{\sqrt{c} x}{\sqrt{b x+c x^2}}\right )}{c^{3/2}}-\frac{2 x (b B-A c)}{b c \sqrt{b x+c x^2}} \]

Antiderivative was successfully verified.

[In]

Int[(x*(A + B*x))/(b*x + c*x^2)^(3/2),x]

[Out]

(-2*(b*B - A*c)*x)/(b*c*Sqrt[b*x + c*x^2]) + (2*B*ArcTanh[(Sqrt[c]*x)/Sqrt[b*x + c*x^2]])/c^(3/2)

Rule 777

Int[((d_.) + (e_.)*(x_))*((f_.) + (g_.)*(x_))*((a_.) + (b_.)*(x_) + (c_.)*(x_)^2)^(p_), x_Symbol] :> -Simp[((2
*a*c*(e*f + d*g) - b*(c*d*f + a*e*g) - (b^2*e*g - b*c*(e*f + d*g) + 2*c*(c*d*f - a*e*g))*x)*(a + b*x + c*x^2)^
(p + 1))/(c*(p + 1)*(b^2 - 4*a*c)), x] - Dist[(b^2*e*g*(p + 2) - 2*a*c*e*g + c*(2*c*d*f - b*(e*f + d*g))*(2*p
+ 3))/(c*(p + 1)*(b^2 - 4*a*c)), Int[(a + b*x + c*x^2)^(p + 1), x], x] /; FreeQ[{a, b, c, d, e, f, g}, x] && N
eQ[b^2 - 4*a*c, 0] && LtQ[p, -1]

Rule 620

Int[1/Sqrt[(b_.)*(x_) + (c_.)*(x_)^2], x_Symbol] :> Dist[2, Subst[Int[1/(1 - c*x^2), x], x, x/Sqrt[b*x + c*x^2
]], x] /; FreeQ[{b, c}, x]

Rule 206

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1*ArcTanh[(Rt[-b, 2]*x)/Rt[a, 2]])/(Rt[a, 2]*Rt[-b, 2]), x]
 /; FreeQ[{a, b}, x] && NegQ[a/b] && (GtQ[a, 0] || LtQ[b, 0])

Rubi steps

\begin{align*} \int \frac{x (A+B x)}{\left (b x+c x^2\right )^{3/2}} \, dx &=-\frac{2 (b B-A c) x}{b c \sqrt{b x+c x^2}}+\frac{B \int \frac{1}{\sqrt{b x+c x^2}} \, dx}{c}\\ &=-\frac{2 (b B-A c) x}{b c \sqrt{b x+c x^2}}+\frac{(2 B) \operatorname{Subst}\left (\int \frac{1}{1-c x^2} \, dx,x,\frac{x}{\sqrt{b x+c x^2}}\right )}{c}\\ &=-\frac{2 (b B-A c) x}{b c \sqrt{b x+c x^2}}+\frac{2 B \tanh ^{-1}\left (\frac{\sqrt{c} x}{\sqrt{b x+c x^2}}\right )}{c^{3/2}}\\ \end{align*}

Mathematica [A]  time = 0.0680246, size = 79, normalized size = 1.32 \[ \frac{2 \sqrt{c} x (A c-b B)+2 b^{3/2} B \sqrt{x} \sqrt{\frac{c x}{b}+1} \sinh ^{-1}\left (\frac{\sqrt{c} \sqrt{x}}{\sqrt{b}}\right )}{b c^{3/2} \sqrt{x (b+c x)}} \]

Antiderivative was successfully verified.

[In]

Integrate[(x*(A + B*x))/(b*x + c*x^2)^(3/2),x]

[Out]

(2*Sqrt[c]*(-(b*B) + A*c)*x + 2*b^(3/2)*B*Sqrt[x]*Sqrt[1 + (c*x)/b]*ArcSinh[(Sqrt[c]*Sqrt[x])/Sqrt[b]])/(b*c^(
3/2)*Sqrt[x*(b + c*x)])

________________________________________________________________________________________

Maple [A]  time = 0.007, size = 67, normalized size = 1.1 \begin{align*} -2\,{\frac{Bx}{c\sqrt{c{x}^{2}+bx}}}+{B\ln \left ({ \left ({\frac{b}{2}}+cx \right ){\frac{1}{\sqrt{c}}}}+\sqrt{c{x}^{2}+bx} \right ){c}^{-{\frac{3}{2}}}}+2\,{\frac{Ax}{b\sqrt{c{x}^{2}+bx}}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x*(B*x+A)/(c*x^2+b*x)^(3/2),x)

[Out]

-2*B/c/(c*x^2+b*x)^(1/2)*x+B/c^(3/2)*ln((1/2*b+c*x)/c^(1/2)+(c*x^2+b*x)^(1/2))+2*A/b/(c*x^2+b*x)^(1/2)*x

________________________________________________________________________________________

Maxima [F(-2)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x*(B*x+A)/(c*x^2+b*x)^(3/2),x, algorithm="maxima")

[Out]

Exception raised: ValueError

________________________________________________________________________________________

Fricas [A]  time = 1.90399, size = 359, normalized size = 5.98 \begin{align*} \left [\frac{{\left (B b c x + B b^{2}\right )} \sqrt{c} \log \left (2 \, c x + b + 2 \, \sqrt{c x^{2} + b x} \sqrt{c}\right ) - 2 \,{\left (B b c - A c^{2}\right )} \sqrt{c x^{2} + b x}}{b c^{3} x + b^{2} c^{2}}, -\frac{2 \,{\left ({\left (B b c x + B b^{2}\right )} \sqrt{-c} \arctan \left (\frac{\sqrt{c x^{2} + b x} \sqrt{-c}}{c x}\right ) +{\left (B b c - A c^{2}\right )} \sqrt{c x^{2} + b x}\right )}}{b c^{3} x + b^{2} c^{2}}\right ] \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x*(B*x+A)/(c*x^2+b*x)^(3/2),x, algorithm="fricas")

[Out]

[((B*b*c*x + B*b^2)*sqrt(c)*log(2*c*x + b + 2*sqrt(c*x^2 + b*x)*sqrt(c)) - 2*(B*b*c - A*c^2)*sqrt(c*x^2 + b*x)
)/(b*c^3*x + b^2*c^2), -2*((B*b*c*x + B*b^2)*sqrt(-c)*arctan(sqrt(c*x^2 + b*x)*sqrt(-c)/(c*x)) + (B*b*c - A*c^
2)*sqrt(c*x^2 + b*x))/(b*c^3*x + b^2*c^2)]

________________________________________________________________________________________

Sympy [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{x \left (A + B x\right )}{\left (x \left (b + c x\right )\right )^{\frac{3}{2}}}\, dx \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x*(B*x+A)/(c*x**2+b*x)**(3/2),x)

[Out]

Integral(x*(A + B*x)/(x*(b + c*x))**(3/2), x)

________________________________________________________________________________________

Giac [F(-2)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: TypeError} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x*(B*x+A)/(c*x^2+b*x)^(3/2),x, algorithm="giac")

[Out]

Exception raised: TypeError